{*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2012 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
<script type="text/javascript">
    $(document).ready(function () {
    var currentDate = new Date();
    var day = currentDate.getDay();

    var currentHour = currentDate.getHours();
    var htmlDelivery = "Earliest Delivery : " + currentDate.getDate() + "-" + (currentDate.getMonth() + 1 ) + "-" + currentDate.getFullYear() ;
    if (day > 0 && day < 6) {
    if (currentHour < 14) {
    htmlDelivery += " Between 7:30pm To 10pm ";
}
else if (currentHour >= 14 && currentHour <= 17) {
var nextDate = new Date();
nextDate.setDate(nextDate.getDate() + 1);
htmlDelivery = "Earliest Delivery : " + (nextDate.getDate()) + "-" + ( nextDate.getMonth() + 1) + "-" + nextDate.getFullYear() ;
htmlDelivery += " 9:00am";
}
else {
var nextDate = new Date();
nextDate.setDate(nextDate.getDate() + 1);
htmlDelivery = "Earliest Delivery : " + (nextDate.getDate()) + "-" + (nextDate.getMonth() + 1) + "-" + nextDate.getFullYear() ;
htmlDelivery += " After 2pm";
}
}
else if (day == 0) {
var nextDate = new Date();
nextDate.setDate(nextDate.getDate() + 1);
htmlDelivery = "Earliest Delivery : " + (nextDate.getDate()) + "-" + (nextDate.getMonth() + 1) + "-" + nextDate.getFullYear() ;
htmlDelivery += " After 2pm";
}
else {
if (currentHour < 14) {
htmlDelivery = "Earliest Delivery : " + currentDate.getDate() + "-" + (currentDate.getMonth() + 1) + "-" + currentDate.getFullYear() ;
htmlDelivery += " Between 7:30pm To 10pm ";
}

else {
var nextDate = new Date();
nextDate.setDate(nextDate.getDate() + 1);
htmlDelivery = "Earliest Delivery : " + (nextDate.getDate()) + "-" + (nextDate.getMonth() + 1) + "-" + nextDate.getFullYear() ;
htmlDelivery += " After 2pm";
}
}
document.getElementById('showEarliestDelivery').innerHTML = htmlDelivery;
});
</script>
<!-- Block user information module HEADER -->
<div id="header_user">

    <div class="left_human">
        <ul class="listlogin">
            {if $logged}
                <li class="human"><a href="#">Hello, {$cookie->customer_firstname}</a></li>
                <li><a href="{$link->getPageLink('index', true, NULL, "mylogout")}"> | LOGOUT</a></li>

            {else}
                <li class="human"><a href="index.php?controller=authentication">MEMBER LOGIN</a></li>
                <li><a href="index.php?controller=authentication"> | SIGN UP</a></li>
            {/if}
        </ul>
    </div>
    <div class="right_human">
        <div id="shopping_cart"><a id="cart_block" href="{$link->getPageLink($order_process, true)}" class="cart">SHOPPING CART</a><span class="ajax_cart_quantity" {if $cart_qties <= 0}style="display:none;"{/if}>({$cart_qties})</span></div>
    </div>
    <div{if $checkHoliday} style="display: none"{/if}>
        <p class="clock_" id="showEarliestDelivery">Earliest Delivery : 25 Jan 2013 Between 2.00pm to 5.30pm</p>
    </div>
    <!--  <ul id="header_nav">
              
    {if !$PS_CATALOG_MODE}
       
<li id="shopping_cart">
       
    
                    
</li>
    {/if}
<li id="your_account"><a href="{$link->getPageLink('my-account', true)}" title="{l s='View my customer account' mod='blockuserinfo'}" rel="nofollow">{l s='Your Account' mod='blockuserinfo'}</a></li>
</ul>-->
    <!--<p id="header_user_info">
    {l s='Welcome' mod='blockuserinfo'}
    {if $logged}
<a href="{$link->getPageLink('my-account', true)}" title="{l s='View my customer account' mod='blockuserinfo'}" class="account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a>
<a href="{$link->getPageLink('index', true, NULL, "mylogout")}" title="{l s='Log me out' mod='blockuserinfo'}" title="{l s='Log out' mod='blockuserinfo'}" class="logout" rel="nofollow">{l s='Log out' mod='blockuserinfo'}</a>
    {else}
<a href="{$link->getPageLink('my-account', true)}" title="{l s='Login to your customer account' mod='blockuserinfo'}" class="login" rel="nofollow">{l s='Log in' mod='blockuserinfo'}</a>
    {/if}
</p>-->
    </div>
    <!-- /Block user information module HEADER -->
